let school = {
    name:"山东南翔",
    students:[
        {
            name:'国强子',
            age:25,
            fav:['唱歌','游戏']
        },
        {
            name:'铁锤',
            age:28,
            fav:['rap','游戏']
        }
    ],
    teachers:[
        {
            name:'唐老师',
            age:45,
            fav:['挖掘机','开车']
        },
        {
            name:'tony老师',
            age:28,
            fav:['洗','剪','吹']
        }
    ]
}
//1.分别完成上面school对象的深拷贝和浅拷贝。可尝试使用函数递归的方式

let attackBase = {
    hp:100,
    mp:100,
    gjl:10,
    attack:function(){console.log('攻击对方')}
}
let hero = {
    hp:100,
    mp:100,
    gjl:10,
    attack:function(){console.log('攻击对方')},
    type:'hero'
}

let soldier = {
    hp:100,
    mp:100,
    gjl:10,
    attack:function(){console.log('攻击对方')},
    type:'soldier'
}
//2.给定三个对象模板，创建模板对应的构造函数，通过继承实现。
//3.完成一个网页时钟，样式不限。使用setInterval以及Date对象
//4.http://www.fgm.cc/learn/lesson7/01.html，可以尝试左右滑动模式

// setInterval(function(){
//     print()
// },1000)

// function print(){
//     console.log('a')
// }